(Ambiya') 21 : 104
يَوْمَ نَطْوِي السَّمَاءَ كَطَيِّ السِّجِلِّ لِلْكُتُبِ ۚ كَمَا بَدَأْنَا أَوَّلَ خَلْقٍ نُعِيدُهُ ۚ وَعْدًا عَلَيْنَا ۚ إِنَّا كُنَّا فَاعِلِينَ
The Day when We will fold the heaven like folding the pages of a book; We began the first creation, We will repeat it. A Promise binding upon Us, indeed We are doing everything.
The Lord of the universe who fashioned the heavens, earth, and all that between them is Capable to make them into the previous form as explained in verse 21: 30. See explanation 14: 48.